function AtkMapCtrl(){
	var self = this;
	base(this,LSprite,[]);
	var button;
	button = new LButtonSample1("部队属性");
	button.backgroundCorl = "orange";
	button.y = 10;
	button.addEventListener(LMouseEvent.MOUSE_UP,self.forceProperty);
	self.addChild(button);
	self.forcePropertyButton = button;
	button = new LButtonSample1("选择部队");
	button.backgroundCorl = "orange";
	button.y = 60;
	button.addEventListener(LMouseEvent.MOUSE_UP,self.forceSelect);
	self.addChild(button);
	self.forceSelectButton = button;

	button = new LButtonSample1("取消所选");
	button.backgroundCorl = "orange";
	button.y = 110;
	button.addEventListener(LMouseEvent.MOUSE_UP,self.buttonClear);
	self.addChild(button);
	self.canselSelectButton = button;
}
AtkMapCtrl.prototype.buttonClear=function(event){
	var self;
	if(event){
		self = event.clickTarget.parent;
	}else{
		self = this;
	}
	self.forcePropertyButton.backgroundCorl = "orange";
	self.forceSelectButton.backgroundCorl = "orange";
	now_mode = GAME_MODE.NULL;
}
AtkMapCtrl.prototype.forceProperty=function(event){
	var button = event.clickTarget;
	var self = button.parent;
	if(button.backgroundCorl == "grey")return;
	self.buttonClear();
	now_mode = GAME_MODE.NULL;
	button.backgroundCorl = "grey";
}
AtkMapCtrl.prototype.forceSelect=function(event){
	var button = event.clickTarget;
	var self = button.parent;
	if(button.backgroundCorl == "grey")return;
	self.buttonClear();
	now_mode = GAME_MODE.SELECTING;
	button.backgroundCorl = "grey";
}